

import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault('DJANGO_SETTINGS_MODULE',"day06.settings")
django.setup()

from web import models
from utils.encrypt import md5

# models.Administrator.objects.create(username='root',password=md5('root'),mobile='16677778888')
#
# #创建级别
# level_object = models.Level.objects.create(title='VIP',percent=90)
#
# models.Customer.objects.create(username='sharon',password=md5('sharon'),mobile='15012417858',level=level_object,creator_id=1)



# models.Administrator.objects.create(username='root',password=md5('123456'),mobile='16677778888')
#
# #创建级别
# level_object = models.Level.objects.create(title='VIP',percent=90)
#
# models.Customer.objects.create(username='jerry',password=md5('123456'),mobile='15012417858',level=level_object,creator_id=1)


# models.Administrator.objects.create(username='chen',password=md5('123456'),mobile='16605643102')
